package com.ms.p2p.provider.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.ms.p2p.entity.content.Link;
import com.ms.p2p.provider.LinkProvider;
import com.ms.p2p.service.impl.LinkServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * Created by daimajia on 2015/4/19 添加dubbo接口.
 */
@Service
public class LinkProviderImpl  implements LinkProvider {
    @Autowired
    LinkServiceImpl linkService;

    public List<Link> getList() {
        return linkService.getList();
    }

    public Link getOne(int id) {
        return linkService.getOne(id);
    }

    public int insert(Link link) {
        return linkService.insert(link);
    }

    public int update(Link link) {
        return linkService.update(link);
    }

    public int del(int id) {
        return linkService.del(id);
    }
}
